﻿<%@ Page Language="C#" MasterPageFile="~/Forum.master" AutoEventWireup="true" CodeBehind="EditAccountPage_MB.aspx.cs" Inherits="Forums.EditAccountPage_MB" %>

<asp:Content ID="edit" runat="server" ContentPlaceHolderID="mainContentHolder">    
    <form id="editAccntForm">
        <table id="editUserAccount" visible="true">
            <tr>
                <td class="text">
                    Enter password
                    <asp:TextBox ID="txtOldPassword" runat="server" MaxLength="9" AutoPostBack="true" 
                         TextMode="Password" OnTextChanged="userCheck"></asp:TextBox>
                    <asp:label id="lblUserPass" runat="server" visible="false" SkinID="error" Text="Wrong Password!" />
                </td>
            </tr>
            <tr>
                <td class="text">
                    New Password
                    <asp:TextBox ID="txtNewPassword" runat="server" MaxLength="9"
                         TextMode="Password" Text='<%#Bind("password")%>'></asp:TextBox>
                </td>
                <td class="text">
                    Confirm Password
                    <asp:TextBox ID="txtConfirm" runat="server" MaxLength="9"
                         TextMode="Password" ></asp:TextBox>
                          
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="btnUpdate" runat="server" Text="Update Password" 
                        onclick="btnUpdate_Click" CssClass="submitButton" />  
                        <asp:Label ID="lblPasswordUpdated" runat="server" SkinID="error"/>                                                                                          
                </td>
            </tr>
        </table>
        <br />
        <br />
        <br />
        <img alt="No avatar" src="UserAvatar.aspx"/>
        <table id="avatarSetup">
            <tr>
                <td class="text">
                    Upload Pic
                </td>
                <td> 
                                        
                    <input id="uploadAvatar" type="file" runat="server" class="browseButton" />                 
                </td>
            </tr>
            <tr>
                <td colspan="2" align="right">
                    <asp:Button ID="btnUpload" runat="server" CssClass="submitButton" Text="Upload"
                        onclick="btnUpload_Click" />
                </td>
                <td>
                    <asp:Label ID="lblStatus" runat="server" SkinID="error" />
                </td>
            </tr>            
        </table>
    </form>
</asp:Content>